/**
 * @file src/MotifTreeFixedLength.cpp
 *
 * @date 30-jun-2013
 *
 * @author Youri Hoogstrate
 *
 * @section LICENSE
 * yh-kt-fold can predict RNA 2D structures including K-turns.
 * Copyright (C) 2012-2013 Youri Hoogstrate
 *
 * This file is part of yh-kt-fold.
 *
 * yh-kt-fold is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * yh-kt-fold is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */



#include "MotifTreeFixedLength.h"



/**
 * @brief
 *
 * @date 30-jun-2013
 */
MotifTreeFixedLength::MotifTreeFixedLength()
{
	this->root = NULL;
}



/**
 * @brief
 *
 * @date 30-jun-2013
 */
int MotifTreeFixedLength::searchTree(int length5p, int length3p);
{
	int motif_id = MOTIF_UNDEFINED;
	
	if(this->root != NULL)
	{
		motif_id = this->root->search(char * motif5p, char * motif3p);
	}
	
	return motif_id;
}




/**
 * @brief
 *
 * @date 30-jun-2013
 */
int MotifTreeFixedLength::searchMotif(char *motif5p, char *motif3p);
{
	int motif_id = MOTIF_UNDEFINED;
	
	if(this->root != NULL)
	{
		motif_id = this->root->search(char * motif5p, char * motif3p);
	}
	
	return motif_id;
}
